package com.xja.git.mapper;

import com.xja.git.entity.BlogUser;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BlogUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogUser record);

    /**
     * 添加用户
     * @param record
     * @return
     */
    int insertSelective(BlogUser record);

    BlogUser selectByPrimaryKey(Integer id);

    /**
     * 查询用户名
     * @param userName
     * @return
     */
    BlogUser selectByUserName(String userName);

    int updateByPrimaryKeySelective(BlogUser record);

    int updateByPrimaryKey(BlogUser record);
}